package com.itheima.mall.service.smsService;

import com.itheima.pojo.sms.SmsHomeAdvertise;
import com.itheima.mall.commons.PageResult;

import java.util.List;

public interface SmsHomeAdvertiseServiceApi {

    /**
     * 添加广告
     * advertise
     */
    void create(SmsHomeAdvertise advertise);
    /**
     * 删除广告
     * ids
     */
    void delete(List<Long> ids);

    /**
     * 分页查询广告
     * endTime name pageNum pageSize type
     */
    PageResult<SmsHomeAdvertise> list(String endTime, String name, Integer type, Integer pageNum, Integer pageSize);

    /**
     * 修改上下线状态
     * id status
     */
    void updateStatus(Long id, Integer status);

    /**
     * 修改广告
     * id smsHomeAdvertise
     */
    void updateById(Long id, SmsHomeAdvertise smsHomeAdvertise);


    /**
     * 获取广告详情
     * id
     */
    SmsHomeAdvertise getAdvertiseById(Long id);
}
